package com.practice.java8.methodreference;

public class PersonMain {

	public static void main(String[] args) {
		
		PersonFactory<Person> personFactory = Person::new;
		Person person = personFactory.create("Peter", "Parker");
		System.out.println(person.firstName + " " + person.lastName);
	}

}
